program Sdiapp;

uses
  Forms,
  SDIMAIN in 'SDIMAIN.PAS' {SDIAppForm},
  ABOUT in 'ABOUT.PAS' {AboutBox},
  datam in 'datam.pas' {dm: TDataModule},
  f_org in 'f_org.pas' {Form1},
  f_r_zrl in 'f_r_zrl.pas' {Form2},
  f_wok in 'f_wok.pas' {Form_work},
  f_nu in 'f_nu.pas' {Form_nu},
  f_timesh in 'f_timesh.pas' {Form_timesheet},
  f_timesh_add in 'f_timesh_add.pas' {_timesh_add},
  f_kalend in 'f_kalend.pas' {Form_kalendar},
  f_retention in 'f_retention.pas' {Form_retention},
  f_base_form in 'f_base_form.pas' {Form_base},
  f_retantion_add in 'f_retantion_add.pas' {Form_retantion_add},
  f_vacation in 'f_vacation.pas' {Form_vacation},
  f_payroll in 'f_payroll.pas' {Form_payroll},
  Unit3 in 'Unit3.pas' {Form3};

{$R *.RES}

begin
  Application.Initialize;
  Application.CreateForm(Tdm, dm);
  Application.CreateForm(TSDIAppForm, SDIAppForm);
  if dm.UC.Connected then
  begin

    Application.CreateForm(TSDIAppForm, SDIAppForm);
    Application.CreateForm(TAboutBox, AboutBox);
    Application.CreateForm(TForm1, Form1);
    Application.CreateForm(TForm2, Form2);
    Application.CreateForm(TForm_work, Form_work);
    Application.CreateForm(TForm_nu, Form_nu);
    Application.CreateForm(TForm_timesheet, Form_timesheet);
    Application.CreateForm(TForm_kalendar, Form_kalendar);
    Application.Run;
  end;

end.
